<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="大家的Java博客">
    <meta name="author" content="EveryoneJavaBlog">
    <link rel="icon" href="favicon.ico">

    <!-- Bootstrap core CSS -->
    <link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/api.css" rel="stylesheet">
    <link href="../lib/highlight/styles/darkula.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="../asset/html5shiv.min.js"></script>
    <script src="../asset/respond.min.js"></script>
    <![endif]-->
    <title>大家的Java博客API文档</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top navbar-java">
    <div class="container">
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">首页</a></li>
                <li><a href="api-index.html">API通用规则</a></li>
                <li><a href="api-list.html">API列表</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>

<div class="container">

    <div class="row">

        <h2>获取文章详细信息接口</h2>

        <p><strong>地址：</strong></p>
        <blockquote>/Article/GetArticleInfo</blockquote>

        <p><strong>方法：</strong></p>
        <blockquote>GET</blockquote>

        <p><strong>是否需要登录：</strong></p>
        <blockquote>否</blockquote>

        <p><strong>参数说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>articleId</td>
                <td>是</td>
                <td>int</td>
                <td>文章id</td>
            </tr>
            </tbody>
        </table>

        <p><strong>请求示例：</strong></p>

        <pre><code class="Bash">curl -d 'articleId=1' '/Article/GetArticleInfo'</code></pre>

        <p><strong>返回值说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>webUser</td>
                <td>是</td>
                <td>WebUser</td>
                <td>文章用户信息类</td>
            </tr>
            <tr>
                <td>webUser.id</td>
                <td>是</td>
                <td>Integer</td>
                <td>文章用户id</td>
            </tr>
            <tr>
                <td>webUser.username</td>
                <td>是</td>
                <td>string</td>
                <td>文章用户名称</td>
            </tr>
            <tr>
                <td>webUser.nickname</td>
                <td>是</td>
                <td>string</td>
                <td>文章用户昵称</td>
            </tr>
            <tr>
                <td>blogConfig</td>
                <td>是</td>
                <td>BlogConfig</td>
                <td>用户博客配置信息类</td>
            </tr>
            <tr>
                <td>blogConfig.id</td>
                <td>是</td>
                <td>Integer</td>
                <td>用户博客id</td>
            </tr>
            <tr>
                <td>blogConfig.introduction</td>
                <td>是</td>
                <td>string</td>
                <td>用户个人介绍</td>
            </tr>
            <tr>
                <td>blogConfig.address</td>
                <td>是</td>
                <td>string</td>
                <td>用户博客地址</td>
            </tr>
            <tr>
                <td>blogConfig.blogTitle</td>
                <td>是</td>
                <td>string</td>
                <td>用户博客标题</td>
            </tr>
            <tr>
                <td>blogConfig.blogSubTitle</td>
                <td>是</td>
                <td>string</td>
                <td>用户博客小标题</td>
            </tr>
            <tr>
                <td>categoryName</td>
                <td>是</td>
                <td>CategoryName</td>
                <td>文章分类信息类</td>
            </tr>
            <tr>
                <td>categoryName.id</td>
                <td>是</td>
                <td>Integer</td>
                <td>文章分类id</td>
            </tr>
            <tr>
                <td>categoryName.categoryName</td>
                <td>是</td>
                <td>string</td>
                <td>文章分类名称</td>
            </tr>
            <tr>
                <td>userArticle</td>
                <td>是</td>
                <td>UserArticle</td>
                <td>文章信息类</td>
            </tr>
            <tr>
                <td>userArticle.title</td>
                <td>是</td>
                <td>string</td>
                <td>文章标题</td>
            </tr>
            <tr>
                <td>userArticle.content</td>
                <td>是</td>
                <td>string</td>
                <td>文章内容</td>
            </tr>
            <tr>
                <td>userArticle.readTimes</td>
                <td>是</td>
                <td>Integer</td>
                <td>文章阅读次数</td>
            </tr>
            <tr>
                <td>userArticle.thumbupTimes</td>
                <td>是</td>
                <td>Integer</td>
                <td>文章点赞次数</td>
            </tr>
            <tr>
                <td>userArticle.commentTimes</td>
                <td>是</td>
                <td>Integer</td>
                <td>文章评论条数</td>
            </tr>
            <tr>
                <td>userArticle.createTime</td>
                <td>是</td>
                <td>string</td>
                <td>文章创建时间</td>
            </tr>
            <tr>
                <td>userArticle.updateTime</td>
                <td>是</td>
                <td>string</td>
                <td>文章上次更新时间</td>
            </tr>
            </tbody>
        </table>
        <p><strong>返回示例：</strong></p>

        <pre><code class="JSON">{"code":200,"message":"请求成功","data":{"webUser":{"username":"zuoxiaolong","nickname":"草帽","id":1},"blogConfig":{"introduction":"我是你们的草帽","address":"www.google.com","blogTitle":"看这里","blogSubTitle":"就是这里","id":1},"userArticle":{"webUserId":1,"categoryId":1,"title":"第一篇测试","content":"这是我的第一篇博客","readTimes":267,"thumbupTimes":42,"isMainPage":1,"status":2,"commentTimes":34,"id":1,"createTime":"2016-05-15 15:12:07","updateTime":"2016-07-04 20:36:59"},"articleCategory":{"categoryName":"技术","id":1}}}</code></pre>

    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../lib/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../lib/bootstrap/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../asset/ie10-viewport-bug-workaround.js"></script>
<script src="../lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>